﻿<Application
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:vsm ="clr-namespace:System.Windows;assembly=PresentationFramework"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="CartoonViewer.App"
    StartupUri="W_CartoonViewer.xaml">
    <Application.Resources>
    	<Style x:Key="ProgressBarStyle" TargetType="{x:Type ProgressBar}">
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type ProgressBar}">
    					<Grid>
                            <!--背景框-->
    						<Rectangle Margin="0" VerticalAlignment="Stretch" Height="Auto" Stroke="#FF7C8C9A" RadiusX="1" RadiusY="1">
    							<Rectangle.Fill>
    								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    									<GradientStop Color="#FFDEDEDE" Offset="0"/>
    									<GradientStop Color="White" Offset="1"/>
    								</LinearGradientBrush>
    							</Rectangle.Fill>
    						</Rectangle>
                            <!--进度低槽     不要改这个DockPanel的名字-->
    						<DockPanel x:Name="PART_Track" Margin="1" LastChildFill="false">
                                <!--进度填充条     不要改这个Rec的名字-->
    							<Rectangle  x:Name="PART_Indicator">
    								<Rectangle.Fill>
    									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    										<GradientStop Color="#FFF3FFA7" Offset="0.075"/>
    										<GradientStop Color="#FFADDA4F" Offset="0.8"/>
    										<GradientStop Color="#FFCFEC31" Offset="0.129"/>
    										<GradientStop Color="#FF8AC118" Offset="0.871"/>
    										<GradientStop Color="#FFA8DC3B" Offset="1"/>
    									</LinearGradientBrush>
    								</Rectangle.Fill>
    							</Rectangle>
    						</DockPanel>
                            <!--边缘的一像素高光-->
    						<Rectangle Margin="1" Height="Auto" Stroke="White" Opacity="0.25"/>
    					</Grid>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
            <!--垂直方向的进度条-->
    		<Style.Triggers>
    			<Trigger Property="Orientation" Value="Vertical">
    				<Setter Property="Template">
    					<Setter.Value>
    						<ControlTemplate TargetType="{x:Type ProgressBar}">
    							<Grid>
                                    <!--背景框-->
    								<Rectangle Margin="0" VerticalAlignment="Stretch" Height="Auto" Stroke="#FF7C8C9A" RadiusX="1" RadiusY="1">
    									<Rectangle.Fill>
    										<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
    											<GradientStop Color="#FFDEDEDE" Offset="0"/>
    											<GradientStop Color="White" Offset="1"/>
    										</LinearGradientBrush>
    									</Rectangle.Fill>
    								</Rectangle>
    								<DockPanel x:Name="PART_Track" Margin="1,0,1,1" LastChildFill="false">
    									<Decorator x:Name="PART_Indicator" DockPanel.Dock="Bottom">
    										<Rectangle >
    											<Rectangle.LayoutTransform>
    												<RotateTransform Angle="-90"/>
    											</Rectangle.LayoutTransform>
    											<Rectangle.Fill>
    												<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    													<GradientStop Color="#FFF3FFA7" Offset="0.075"/>
    													<GradientStop Color="#FFADDA4F" Offset="0.8"/>
    													<GradientStop Color="#FFCFEC31" Offset="0.106"/>
    													<GradientStop Color="#FF8AC118" Offset="0.871"/>
    													<GradientStop Color="#FFA8DC3B" Offset="1"/>
    												</LinearGradientBrush>
    											</Rectangle.Fill>
    										</Rectangle>
    									</Decorator>
    								</DockPanel>
                                    <!--边缘的一像素高光-->
    								<Rectangle Margin="1" Height="Auto" Stroke="White" Opacity="0.25"/>
    							</Grid>
    						</ControlTemplate>
    					</Setter.Value>
    				</Setter>
    			</Trigger>
    		</Style.Triggers>
    	</Style>
    	<Style x:Key="MinButtonStyle" TargetType="{x:Type Button}">
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type Button}">
    					<Grid x:Name="grid">
    						<VisualStateManager.VisualStateGroups>
    							<VisualStateGroup x:Name="CommonStates">
    								<VisualStateGroup.Transitions>
    									<VisualTransition From="Normal" GeneratedDuration="0:0:0.2" To="MouseOver"/>
    								</VisualStateGroup.Transitions>
    								<VisualState x:Name="Normal"/>
    								<VisualState x:Name="MouseOver">
    									<Storyboard>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[4].(GradientStop.Offset)" Storyboard.TargetName="contentControl">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.803"/>
    										</DoubleAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[3].(GradientStop.Offset)" Storyboard.TargetName="contentControl">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.494"/>
    										</DoubleAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="contentControl">
    											<EasingColorKeyFrame KeyTime="0" Value="#FF52B0F7"/>
    										</ColorAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[2].(GradientStop.Offset)" Storyboard.TargetName="contentControl">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.18"/>
    										</DoubleAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="contentControl">
    											<EasingColorKeyFrame KeyTime="0" Value="#FF65B5F3"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="contentControl">
    											<EasingColorKeyFrame KeyTime="0" Value="White"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[4].(GradientStop.Color)" Storyboard.TargetName="contentControl">
    											<EasingColorKeyFrame KeyTime="0" Value="#FE89CBFD"/>
    										</ColorAnimationUsingKeyFrames>
    										<BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Focusable)" Storyboard.TargetName="grid">
    											<DiscreteBooleanKeyFrame KeyTime="0" Value="False"/>
    										</BooleanAnimationUsingKeyFrames>
    										<BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Focusable)" Storyboard.TargetName="contentControl">
    											<DiscreteBooleanKeyFrame KeyTime="0" Value="False"/>
    										</BooleanAnimationUsingKeyFrames>
    										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="border">
    											<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
    										</ObjectAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="White"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="#FFC8E7FF"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="#FF4BAAF3"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[4].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="#FE3DAAFE"/>
    										</ColorAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[2].(GradientStop.Offset)" Storyboard.TargetName="border">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.107"/>
    										</DoubleAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[3].(GradientStop.Offset)" Storyboard.TargetName="border">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.528"/>
    										</DoubleAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[4].(GradientStop.Offset)" Storyboard.TargetName="border">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.858"/>
    										</DoubleAnimationUsingKeyFrames>
    									</Storyboard>
    								</VisualState>
    								<VisualState x:Name="Pressed">
    									<Storyboard>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="border1">
    											<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
    										</DoubleAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="border1">
    											<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
    										</DoubleAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[4].(GradientStop.Offset)" Storyboard.TargetName="contentControl">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.803"/>
    										</DoubleAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[3].(GradientStop.Offset)" Storyboard.TargetName="contentControl">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.494"/>
    										</DoubleAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="contentControl">
    											<EasingColorKeyFrame KeyTime="0" Value="#FF52B0F7"/>
    										</ColorAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[2].(GradientStop.Offset)" Storyboard.TargetName="contentControl">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.18"/>
    										</DoubleAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="contentControl">
    											<EasingColorKeyFrame KeyTime="0" Value="#FF65B5F3"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="contentControl">
    											<EasingColorKeyFrame KeyTime="0" Value="White"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[4].(GradientStop.Color)" Storyboard.TargetName="contentControl">
    											<EasingColorKeyFrame KeyTime="0" Value="#FE89CBFD"/>
    										</ColorAnimationUsingKeyFrames>
    										<BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Focusable)" Storyboard.TargetName="grid">
    											<DiscreteBooleanKeyFrame KeyTime="0" Value="False"/>
    										</BooleanAnimationUsingKeyFrames>
    										<BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Focusable)" Storyboard.TargetName="contentControl">
    											<DiscreteBooleanKeyFrame KeyTime="0" Value="False"/>
    										</BooleanAnimationUsingKeyFrames>
    										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="border">
    											<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
    										</ObjectAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="White"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="#FFC8E7FF"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="#FF4BAAF3"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[4].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="#FE3DAAFE"/>
    										</ColorAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[2].(GradientStop.Offset)" Storyboard.TargetName="border">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.107"/>
    										</DoubleAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[3].(GradientStop.Offset)" Storyboard.TargetName="border">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.528"/>
    										</DoubleAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[4].(GradientStop.Offset)" Storyboard.TargetName="border">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.858"/>
    										</DoubleAnimationUsingKeyFrames>
    									</Storyboard>
    								</VisualState>
    								<VisualState x:Name="Disabled"/>
    							</VisualStateGroup>
    						</VisualStateManager.VisualStateGroups>
    						<ContentControl x:Name="contentControl" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"   HorizontalAlignment="Center" ToolTip="最小化" UseLayoutRounding="True" BorderBrush="#FF9B9B9B" Margin="0,-1,0,1" d:IsHidden="True"  >
    							<ContentControl.Background>
    								<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
    									<GradientStop Color="White" Offset="0"/>
    									<GradientStop Color="White" Offset="1"/>
    									<GradientStop Color="#FFC8E7FF" Offset="0.094"/>
    									<GradientStop Color="#FF4BAAF3" Offset="0.536"/>
    									<GradientStop Color="#FE3DAAFE" Offset="0.858"/>
    								</LinearGradientBrush>
    							</ContentControl.Background>
    						</ContentControl>
							<Border BorderThickness="0.5,0,1,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,4" BorderBrush="#FFD4D4D4"/>
							<Border x:Name="border" >
								<Border.Background>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFFFF9F9" Offset="0"/>
										<GradientStop Color="White" Offset="1"/>
										<GradientStop Color="#FFD6D6D6" Offset="0.318"/>
										<GradientStop Color="Silver" Offset="0.519"/>
										<GradientStop Color="#FFC2C2C2" Offset="0.764"/>
									</LinearGradientBrush>
								</Border.Background>
								 
							</Border>
							<Border x:Name="border1" Width="10" Height="2" Background="White" BorderBrush="#FFD6D6D6" BorderThickness="0.3" VerticalAlignment="Bottom" Margin="0,0,0,6" RenderTransformOrigin="0.5,0.5">
								<Border.RenderTransform>
									<TransformGroup>
										<ScaleTransform/>
										<SkewTransform/>
										<RotateTransform/>
										<TranslateTransform/>
									</TransformGroup>
								</Border.RenderTransform>
							</Border>
    					</Grid>
    					<ControlTemplate.Triggers>
    						<Trigger Property="IsFocused" Value="True"/>
    						<Trigger Property="IsDefaulted" Value="True"/>
    						<Trigger Property="IsMouseOver" Value="True"/>
    						<Trigger Property="IsPressed" Value="True"/>
    						<Trigger Property="IsEnabled" Value="False"/>
    					</ControlTemplate.Triggers>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    		<Setter Property="FontWeight" Value="30"/>
    		<Setter Property="FontSize" Value="16"/>
    		<Setter Property="Foreground" Value="White"/>
    	</Style>
    	<Style x:Key="CloseButtonStyle" TargetType="{x:Type Button}">
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type Button}">
    					<Grid> 
    						<VisualStateManager.VisualStateGroups>
    							<VisualStateGroup x:Name="CommonStates">
    								<VisualStateGroup.Transitions>
    									<VisualTransition From="Normal" GeneratedDuration="0:0:0.2" To="MouseOver"/>
    								</VisualStateGroup.Transitions>
    								<VisualState x:Name="Normal">
    									<Storyboard>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="White"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="White"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[4].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="#FFB1ACAC"/>
    										</ColorAnimationUsingKeyFrames>
    									</Storyboard>
    								</VisualState>
    								<VisualState x:Name="MouseOver">
    									<Storyboard>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="#FFFDC8C8"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[4].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="Red"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="White"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="White"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="#FEFBB3B0"/>
    										</ColorAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[2].(GradientStop.Offset)" Storyboard.TargetName="border">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.009"/>
    										</DoubleAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[3].(GradientStop.Offset)" Storyboard.TargetName="border">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.991"/>
    										</DoubleAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[4].(GradientStop.Offset)" Storyboard.TargetName="border">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.541"/>
    										</DoubleAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="path">
    											<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
    										</DoubleAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="path">
    											<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
    										</DoubleAnimationUsingKeyFrames>
    									</Storyboard>
    								</VisualState>
    								<VisualState x:Name="Pressed">
    									<Storyboard>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="#FFFDC8C8"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[4].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="Red"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="White"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="White"/>
    										</ColorAnimationUsingKeyFrames>
    										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="border">
    											<EasingColorKeyFrame KeyTime="0" Value="#FEFBB3B0"/>
    										</ColorAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[2].(GradientStop.Offset)" Storyboard.TargetName="border">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.009"/>
    										</DoubleAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[3].(GradientStop.Offset)" Storyboard.TargetName="border">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.991"/>
    										</DoubleAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[4].(GradientStop.Offset)" Storyboard.TargetName="border">
    											<EasingDoubleKeyFrame KeyTime="0" Value="0.541"/>
    										</DoubleAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="path">
    											<EasingDoubleKeyFrame KeyTime="0" Value="2"/>
    										</DoubleAnimationUsingKeyFrames>
    										<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="path">
    											<EasingDoubleKeyFrame KeyTime="0" Value="2"/>
    										</DoubleAnimationUsingKeyFrames>
    									</Storyboard>
    								</VisualState>
    								<VisualState x:Name="Disabled"/>
    							</VisualStateGroup>
    						</VisualStateManager.VisualStateGroups> 
    						<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
    						<Border x:Name="border">
    							<Border.Background>
    								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    									<GradientStop Color="Black" Offset="0"/>
    									<GradientStop Color="White" Offset="1"/>
    									<GradientStop Color="#FF333333" Offset="0.202"/>
    									<GradientStop Color="DarkGray" Offset="0.665"/>
    									<GradientStop Color="#FF818181" Offset="0.511"/>
    								</LinearGradientBrush>
    							</Border.Background>
    						</Border>
    						<Path x:Name="path" Data="M2.5,2.5 L18.5,18.5 M18.5,1.5 L1.5,18.5" Fill="White" HorizontalAlignment="Stretch" Margin="5,5,5,4" Stretch="Fill" Stroke="#FFFFFDFD" StrokeThickness="3" Width="Auto" RenderTransformOrigin="-2.55,0.6">
    							<Path.RenderTransform>
    								<TransformGroup>
    									<ScaleTransform/>
    									<SkewTransform/>
    									<RotateTransform/>
    									<TranslateTransform/>
    								</TransformGroup>
    							</Path.RenderTransform>
    						</Path>
							
    					</Grid>
    					<ControlTemplate.Triggers>
    						<Trigger Property="IsFocused" Value="False"/>
    						<Trigger Property="IsDefaulted" Value="True"/>
    						<Trigger Property="IsMouseOver" Value="True"/>
    						<Trigger Property="IsPressed" Value="True"/>
    						<Trigger Property="IsEnabled" Value="False"/>
    					</ControlTemplate.Triggers>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    	</Style>
 

 
        
    </Application.Resources>
</Application>
